import fetch from '@/utils/fetch';

// 用户登录
// export const login = ({ username, password }) => fetch('/admin/login', {
//   username,
//   password
// }, 'POST')
export const login = (data) => fetch('/user/login', data || {}, 'POST');

// 退出登录
export const logout = () => fetch('/user/logout', {}, 'POST');

// 获取用户信息
export const getInfo = () => fetch('/user/info', {});

